﻿package com.athena.vo 
{
	public class ObjectTable {
		public function ObjectTable():void {
			RoomID = 0 ;
			TableID = "0";
			CurrentPlayer = 0 ;
			MarkUnit = 0 ;
			ArrPlayers = new Array() ;
			Status = 0 ;
		}
		private var _roomID :int; //ID Room
        private var _tableID :String; //ID Bàn
        private var _tableName :String; //Tên Bàn
        private var _currentPlayer :uint; //Số người chơi hiện tại
        private var _markUnit :int; //Don vi diem trao doi trong ban
        private var _arrRemoveCards :Array; //Danh sách các nhóm quan bai da danh                            
        private var _arrPlayers :Array; //Danh sách các player chơi bài
        private var _status :uint; //0 - Dang cho, 1- Dang danh, 2- finished
		private var _isStartNew : Boolean ;//Bat dau luot danh moi
		private var _countChieu : int; //So nuoc chieu lien tuc
		private var _timePer : int; //Thời gian suy nghĩ tối đa 1 nước
		private var _totalTime : int; //Tổng thời gian suy nghĩ
		private var _type : uint; //1 - To co gioi han, 2 - khong co gioi han
		//ID
		public function get RoomID() {
			return _roomID ;
		}
		public function set RoomID(_value :int) {
			_roomID = _value ;
		}
		//TableID
		public function get TableID() {
			return _tableID ;
		}
		public function set TableID(_value :String) {
			_tableID = _value ;
		}
		//TableName
		public function get TableName() {
			return _tableName ;
		}
		public function set TableName(_value :String) {
			_tableName = _value ;
		}
		//CurrentPlayer
		public function get CurrentPlayer() {
			return _currentPlayer ;
		}
		public function set CurrentPlayer(_value :uint) {
			_currentPlayer = _value ;
		}
		//MarkUnit
		public function get MarkUnit() {
			return _markUnit ;
		}
		public function set MarkUnit(_value :int) {
			_markUnit = _value ;
		}
		//Type
		public function get Type() {
			return _type ;
		}
		public function set Type(_value :uint) {
			_type = _value ;
		}		
		//ArrObjectCards
		public function get ArrRemoveCards() {
			return _arrRemoveCards ;
		}
		public function set ArrRemoveCards(_value :Array) {
			_arrRemoveCards = _value ;
		}
		//ArrPlayers
		public function get ArrPlayers() {
			return _arrPlayers ;
		}
		public function set ArrPlayers(_value :Array) {
			_arrPlayers = _value ;
		}
		//Status
		public function get Status() {
			return _status ;
		}
		public function set Status(_value :uint) {
			_status = _value ;
		}	
		//Status
		public function get IsStartNew() {
			return _isStartNew ;
		}
		public function set IsStartNew(_value : Boolean) {
			_isStartNew = _value ;
		}
		//ArrChieu
		public function get CountChieu() {
			return _countChieu ;
		}
		public function set CountChieu(_value : int) {
			_countChieu = _value ;
		}
		//TimePer
		public function get TimePer() {
			return _timePer ;
		}
		public function set TimePer(_value : int) {
			_timePer = _value ;
		}
		//TotalTime
		public function get TotalTime() {
			return _totalTime ;
		}
		public function set TotalTime(_value : int) {
			_totalTime = _value ;
		}
	}
}